<?php
namespace app\index\model;
use think\Model;
/**
* 配置
*/
class Conf extends Model
{
	
	//获取所有配置项
	public function getConfs(){
		$_confRes=$this->field('ename,value')->select();
		static $confRes=array();
		foreach ($_confRes as $k => $v) {
			$confRes[$v['ename']]=$v['value'];
		}
		return $confRes;
	}
}